package com.wxy.controller;

/**
 * @Author：wangxinyu
 * @Package：com.wxy.controller
 * @Project：Test_observer
 * @name：OctalObserver
 * @Date：2024/7/31 19:45
 */
public  class OctalObserver extends Observer{
    public OctalObserver(Subject subject) {
        this.subject = subject;
        this.subject.attach(this);
    }

    @Override
    public void update() {
        System.out.println("OctalObserver update"+Integer.toOctalString(subject.getState()));
    }
}
